//
//  MFWDownloadHeadChecker.h
//  TravelGuideMdd
//
//  Created by 陈曦 on 13-8-28.
//  Copyright (c) 2013年 mafengwo.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MFWDownloadHeadChecker : NSObject

- (id)initWithHeadDict:(NSDictionary*)aDict;
+ (id)checkWithHeadDict:(NSDictionary*)aDict;

@property (nonatomic, readonly) BOOL isKeepAlive;
@property (nonatomic, readonly) long long beginOffset;
@property (nonatomic, readonly) long long endOffset;
@property (nonatomic, readonly) long long curLength;
@property (nonatomic, readonly) long long fileLength;
@property (nonatomic, readonly) NSString  *eTag;
@property (nonatomic, readonly) NSString  *lastUpdateTime;
@property (nonatomic, readonly) NSString *redirectUrl;

- (BOOL)checkNewestByETag:(NSString*)aETag lastUpdateTime:(NSString*)aLastUpdateTime;


@end
